package io;

import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./test.txt");
        FileOutputStream fos1 = new FileOutputStream("./fos.dat");
        for (int i = 97; i < 123; i++) {
            fos.write(i);
        }
        fos.close();
        for (int i = 97; i < 123; i++) {
            fos1.write(i);
        }
        fos1.close();
    }
}
